body {
    background-color: #f3f3f3;
}

.main {
    width: 970px;
    height: 455px;
    margin-left: 230px;
    margin-top: 10px;
}

.main .focus {
    position: relative;
    float: left;
    width: 721px;
    height: 100%;
    overflow: hidden;
}

.focus ul {
    /* 需要加上绝对定位进行移动 */
    position: absolute;
    top: 0;
    left: 0;
    /* 宽度足够宽才能容纳下图片 */
    width: 700%;
}

.focus ul li {
    float: left;
}

.focus ul li a img {
    width: 721px;
    height: 455px;
}

.focus .left_btn,
.focus .right_btn {
    display: none;
    position: absolute;
    top: 50%;
    margin-top: -20px;
    width: 25px;
    height: 40px;
    background: rgba(0, 0, 0, .3);
    text-align: center;
    line-height: 40px;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    /* 提升定位层级 ,不加也可以，因为HTML中btn是写在ul下面*/
    z-index: 9;
}

.left_btn:hover,
.right_btn:hover {
    color: #ed1b55;
}

.left_btn {
    left: 0;
    border-top-right-radius: 20px;
    border-bottom-right-radius: 20px;
}

.right_btn {
    right: 0;
    border-top-left-radius: 20px;
    border-bottom-left-radius: 20px;
}

.focus .bottom_focus {
    position: absolute;
    left: 50%;
    margin-left: -60px;
    bottom: 5px;
    width: 120px;
    height: 20px;
}

.bottom_focus>li {
    float: left;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 1.5px solid #666;
    margin: 6px 8px;
    cursor: pointer;
}

.bottom_focus li.selected,
.aside-focus li.selected {
    border-color: #ed1b55;
    background-color: #fff;
}

.main .newsflash {
    float: right;
    width: 239px;
    height: 100%;
    background-color: #fff;
}

.newsflash .news {
    height: 165px;
    border: 1px solid #e4e4e4;
}

.news .news-hd {
    height: 33px;
    line-height: 33px;
    border-bottom: 1px dotted #e4e4e4;
    padding: 0 15px;
}

.news-hd h5 {
    float: left;
    font-size: 15px;
    font-weight: 400;
}

.news-hd .more {
    float: right;
}

.news-bd {
    padding: 6px 15px;
}

.news-bd ul li {
    height: 24px;
    line-height: 24px;
    /* 单行溢出文本显示省略号 */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.newsflash .lifeService {
    overflow: hidden;
    height: 210px;
    border: 1px solid #e4e4e4;
    border-top: 0;
    border-bottom: 0;
}

.lifeService ul {
    width: 242px;
}

.lifeService ul li {
    position: relative;
    float: left;
    width: 60px;
    height: 70px;
    text-align: center;
    border-right: 1px solid #e4e4e4;
    border-bottom: 1px solid #e4e4e4;
}

.lifeService ul li a {
    display: block;
}

.lifeService ul li a img {
    width: 28px;
    height: 28px;
    margin: 10px 0 5px;
}

.lifeService ul li:nth-child(odd)::after {
    content: '券';
    background-color: #549d54;
}

.lifeService ul li:nth-child(odd)::after,
.lifeService ul li:nth-child(even)::after {
    position: absolute;
    right: 0px;
    top: 0;
    border: 2px solid transparent;
    border-bottom-color: #fff;
    font-size: 8px;
    color: #fff;
}

.lifeService ul li:nth-child(even)::after {
    content: '减';
    background-color: #eb675e;
}

.newsflash .bargain {
    margin-top: 5px;
}

.bargain>img {
    width: 239px;
    height: 75px;
    cursor: pointer;
}


/* 秒杀抢购模块 */

.recom {
    /* 给下面的#progressEffect定位用的 */
    position: relative;
    height: 240px;
    margin-top: 10px;
    text-align: center;
    background-color: #fff;
}

.recom_hd {
    float: left;
    width: 160px;
    height: 100%;
    padding-top: 35px;
    background: -webkit-linear-gradient(left, #bcbdc4, #ccc7c6);
}

.recom_hd h1 {
    margin: 20px 0;
    font-size: 30px;
    font-weight: 700;
    color: #fff;
}

.timebox span {
    display: inline-block;
    width: 30px;
    height: 30px;
    text-align: center;
    line-height: 30px;
    border-radius: 3px;
    background-color: #fff;
    color: #333;
    font-size: 20px;
    font-weight: 700;
}

.timebox span:nth-child(2),
.timebox span:nth-child(4) {
    display: inline;
    background-color: #c5c2c5;
}

.recom .swiper-container {
    float: left;
    width: 1040px;
    height: 100%;
    margin: 0 auto;
}

.recom .swiper-slide {
    text-align: center;
    padding: 10px;
    /* Center slide text vertically */
    display: -webkit-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    -webkit-justify-content: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    -webkit-align-items: center;
    align-items: center;
    transition-property: all;
}

.recom .swiper-button-prev,
.recom .swiper-button-next {
    display: none;
    width: 15px !important;
    line-height: 44px;
    border-radius: 7px;
    color: #fff;
    font-weight: 700;
    background: rgba(0, 0, 0, .3);
    /* 让原本自带的蓝色箭头图片隐藏 */
    background-image: url(none) !important;
}

.recom .swiper-button-prev:hover,
.recom .swiper-button-next:hover {
    color: #ed1b55;
}

.recom .swiper-slide>a {
    display: block;
    width: 100%;
    height: 100%;
}

.recom .swiper-slide>a img {
    width: 100%;
    height: 100%;
    border: 1px solid #e4e4e4;
    border-radius: 5px;
    transition: all .5s;
}

.recom .swiper-slide>a img:hover {
    border-color: #ed1b55;
    border-radius: 0;
    transform: scale(1.05);
    /* 提高图片对比度+褐色滤镜 */
    filter: contrast(110%) sepia(20%);
}

.recom #progressEffect {
    display: none;
    position: absolute;
    top: 0;
    left: 40px;
    z-index: 9;
}


/* 特色优选模块 */

.special {
    margin-top: 20px;
}

.floor1 {
    margin-bottom: 20px;
}

.floor1>div {
    float: left;
    width: 595px;
    height: 345px;
    background-color: #fff;
}

.bargain-price {
    margin-right: 10px;
}

.box-hd {
    height: 60px;
    line-height: 60px;
    padding: 0 20px;
}

.box-hd>a {
    font-size: 24px;
    font-weight: 700;
    color: #333;
}

.box-hd>a:hover {
    color: #ed1b55;
}

.box-hd>a::after {
    content: '\ea42';
    margin-left: 6px;
    font-family: 'icomoon';
    font-size: 14px;
    color: #ed1b55;
}

.bargain-hd li {
    float: left;
    margin-left: 18px;
    font-size: 16px;
}

.bargain-hd li a.hover {
    border-bottom: 2px solid #ed1b55;
    color: #ed1b55;
}


/* 每日特价模块 */

.bargain-bd {
    width: 595px;
    height: 285px;
    padding: 0 17px 17px;
}

.bargain-bd li a {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
}

.bargain-bd li:first-child a>i {
    position: absolute;
    top: 0;
    left: 0;
    width: 90px;
    height: 24px;
    text-align: center;
    line-height: 24px;
    background-color: #6b6354;
    font-weight: 600;
    color: #fff;
}

.bargain-bd li a>i {
    position: absolute;
    bottom: 6px;
    left: 0;
    width: 84px;
    height: 16px;
    text-align: center;
    line-height: 16px;
    background-color: rgba(0, 0, 0, .5);
    font-size: 10px;
    color: #fff;
}

.bargain-bd li {
    float: left;
    width: 170px;
    height: 90px;
    margin-top: 20px;
    margin-left: 25px;
}

.bargain-bd li:nth-child(n+4) {
    margin-top: 45px;
}

.bargain-bd li:first-child {
    height: 265px;
    margin: 0;
    background-color: #f7f8f9;
}

.bargain-bd li img {
    float: left;
    width: 84px;
    height: 84px;
    margin-right: 6px;
}

.bargain-bd li:first-child img {
    float: none;
    width: 120px;
    height: 120px;
    margin-top: 35px;
    margin-left: 25px;
}

.bargain-bd li p {
    /* white-space: nowrap; */
    /* text-overflow: ellipsis; */
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.bargain-bd li:first-child p {
    margin: 20px 0 10px;
    font-size: 14px;
}

.bargain-bd li:first-child span {
    margin: 0 5px 0 30px;
    font-size: 18px;
}

.bargain-bd li span {
    /* 行内元素不能添加margin(padding)-top/bottom ,水平方向才可（left/right)*/
    display: inline-block;
    margin-top: 5px;
    font-size: 16px;
    font-weight: 600;
    color: #ed1b55;
}

.bargain-bd li del {
    color: #999;
}

.bargain-bd p.last {
    margin-top: 6px;
    color: #999;
}


/* 品牌闪购模块 */

.flash-bd {
    position: relative;
    width: 595px;
    height: 285px;
    padding: 0 15px 15px;
}

.flash-box1 {
    float: left;
    width: 270px;
    height: 265px;
    padding: 20px;
    background-color: #f7f5f9;
    text-align: center;
}

.flash-box1 a {
    display: block;
}

.flash-box1 h5 {
    margin-top: 5px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.flash-box1 p {
    margin-bottom: 10px;
    color: #666;
}

.flash-box2 {
    position: absolute;
    bottom: 15px;
    right: 15px;
    width: 270px;
    height: 300px;
}

.flash-box2 a {
    position: relative;
    float: left;
    width: 135px;
    height: 100px;
    padding: 10px 0;
    text-align: center;
}

.flash-box2 a:nth-child(odd)::after {
    /* 注意要加上content才能生效 */
    content: '';
    position: absolute;
    top: 15px;
    right: 0;
    width: 1px;
    height: 65px;
    background-color: #e4e4e4;
}

.flash-box2 a img {
    width: 100px;
    height: 50px;
}

.floor2>div {
    float: left;
    width: 291px;
    height: 340px;
    margin-right: 12px;
    background-color: #fff;
}

.floor2>div:last-child {
    margin-right: 0;
}

.rank-list .box-hd {
    position: relative;
}

.rank-hd {
    position: absolute;
    bottom: -40px;
    left: 10px;
}

.rank-hd a {
    display: inline-block;
    width: 60px;
    height: 20px;
    margin: 0 2px;
    text-align: center;
    line-height: 20px;
    border-radius: 10px;
    background-color: #eee;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rank-hd a.hover {
    background-color: #ed1b55;
    color: #fff;
}

.rank-list .box-bd {
    width: 291px;
    height: 280px;
    padding: 0 15px 15px;
}

.rank {
    float: left;
    width: 30px;
    height: 100%;
}

.rank>div {
    width: 30px;
    height: 45px;
    margin: 40px 0;
    background: url(../img/rank-first.png) no-repeat;
    background-size: cover !important;
    text-align: center;
}

.rank .box2 {
    background: url(../img/rank-second.png);
}

.rank .box3 {
    background: url(../img/rank-third.png);
}

.rank>div span {
    font-weight: 600;
    opacity: .3;
}

.rank>div p {
    margin-top: -5px;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
}

.rank-bd {
    float: right;
    width: 220px;
    height: 265px;
}

.rank-bd a {
    display: block;
    height: 70px;
    margin-top: 16px;
}

.rank-bd a:first-child {
    margin-top: 25px;
}

.rank-bd a img {
    float: left;
    width: 70px;
    height: 70px;
    margin-right: 6px;
}

.rank-bd a p {
    padding-top: 15px;
    font-size: 14px;
    /* 限制p标签显示文字为两行 */
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.shop-bd {
    width: 291px;
    height: 280px;
    padding: 0 16px 15px 15px;
}

.shop-bd>a {
    position: relative;
    display: block;
    width: 260px;
    height: 128px;
    margin-bottom: 10px;
    padding: 14px 10px 10px 15px;
    background: -webkit-linear-gradient(left top, #f4f1ef, #f6eeee);
}

.shop-bd a h3 {
    font-weight: 500;
    margin-top: 5px;
    margin-bottom: 10px;
}

.shop-bd a span {
    margin-right: 6px;
    border: 1px solid #ed1b55;
    color: #ed1b55;
}

.shop-bd a span,
.shop-bd a i {
    display: inline-block;
    border-radius: 2px;
}

.shop-bd a i {
    border: 1px solid #596fab;
    color: #596fab;
}

.shop-bd a p {
    margin-top: 15px;
    color: #666;
    opacity: .5;
}

.shop-bd a div {
    position: absolute;
    top: 14px;
    right: 10px;
    width: 100px;
    height: 100px;
    text-align: center;
    line-height: 100px;
    border-radius: 5px;
    background-color: #fff;
}

.shop-bd a div img {
    width: 90px;
}

.coupon-bd {
    width: 290px;
    height: 280px;
    padding: 0 15px;
    background: url(../upload/coupon-bg.png) no-repeat bottom;
}

.coupon-bd a {
    display: block;
    width: 260px;
    height: 82px;
    margin-bottom: 3px;
    padding: 6px 10px;
}

.coupon-bd a>div {
    float: left;
    height: 100%;
}

.coupon-bd .box1 {
    width: 70px;
    border-radius: 50%;
    background-color: #fff;
    text-align: center;
    line-height: 70px;
}

.coupon-bd .box1 img {
    width: 50px;
}

.coupon-bd .box2 {
    width: 140px;
    padding-left: 6px;
}

.coupon-bd .box2 h3 {
    font-size: 25px;
    font-weight: 700;
    color: #e33333;
}

.coupon-bd .box2 h3 i {
    font-size: 16px;
}

.coupon-bd .box2 p {
    color: #666;
    opacity: .5;
}

.coupon-bd .box2 span {
    color: #666;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}

.coupon-bd .box3 {
    position: relative;
    width: 30px;
    padding-left: 6px;
}

.coupon-bd .box3 span {
    position: absolute;
    top: 26px;
    right: -5px;
}

.bargain-bd img,
.flash-bd img,
.rank-bd img,
.shop-bd img,
.coupon-bd img {
    transition: all .5s;
}

.bargain-bd a:hover img,
.flash-bd a:hover img,
.rank-bd a:hover img,
.shop-bd a:hover img,
.coupon-bd a:hover img {
    transform: scale(1.02);
    opacity: .7;
}

.newArrival-bd {
    position: relative;
    overflow: hidden;
    width: 260px;
    height: 265px;
    margin: 0 15px 15px 16px;
}

.newArrival-bd ul {
    position: absolute;
    top: 0;
    left: 0;
    height: 700%;
}

.newArrival-bd ul li a {
    display: block;
}

.newArrival-bd img {
    width: 260px;
    height: 265px;
}

.newArrival-bd>a {
    display: none;
    position: absolute;
    right: 5px;
    width: 20px;
    height: 20px;
    text-align: center;
    line-height: 20px;
    border-radius: 50%;
    background-color: #fff;
    color: #333;
    font-family: 'icomoon';
}

.newArrival-bd a:hover {
    color: #ed1b55;
}

.top-btn {
    bottom: 40px;
}

.bottom-btn {
    bottom: 15px;
}

.aside-focus {
    position: absolute;
    top: 50%;
    margin-top: -40px;
    right: 5px;
    width: 15px;
    height: 80px;
}

.aside-focus li {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 1.5px solid #fff;
    margin: 6px auto;
    cursor: pointer;
}


/* 电梯直通栏 */

.fixed {
    display: none;
    position: fixed;
    top: 70px;
    left: 50%;
    margin-left: 615px;
    width: 70px;
    text-align: center;
    box-shadow: 0px 1px 1px 1px rgba(0, 0, 0, .1);
    background-color: #fff;
}

.fixed ul li {
    /* 没有浮动的li不方便用margin和padding（左右）来控制之间的垂直距离，用height较好 */
    height: 35px;
    line-height: 35px;
    font-size: 14px;
    border-bottom: 1px dotted #ccc;
}

.fixed ul li:first-child {
    cursor: not-allowed;
}

.fixed ul li:last-child {
    border-bottom: 0;
}

.fixed ul li a {
    display: block;
}

.fixed ul li:first-child,
.fixed ul li a:hover,
.fixed ul li a.hover {
    background-color: #ed1b55;
    color: #fff;
    font-weight: 500;
}


/* 猜你喜欢模块 */

.like-bd ul:nth-child(even) {
    border-top: 0;
}


/* 固定搜索栏 */

.sticky {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 99;
    width: 100%;
    height: 50px;
    border-bottom: 1px solid #999;
    background-color: #fff;
}

.sticky>a {
    left: 160px;
}

.sticky>a img {
    height: 35px;
}

.sticky .search {
    left: 450px;
}

.sticky>a,
.sticky .search,
.sticky .shopcar {
    position: absolute;
    top: 8px;
}

.sticky .shopcar {
    right: 200px;
}


/* 频道广场模块 */

.channel-hd {
    height: 45px;
    margin: 30px 0 10px;
    text-align: center;
    line-height: 45px;
    font-size: 28px;
    font-weight: 700;
    font-family: 'icomoon';
    color: #333;
}

.channel-bd li {
    float: left;
    width: 290px;
    height: 180px;
    margin: 10px 13px 0 0;
    background: -webkit-linear-gradient(left top, #e6d4e3, #d0d6e8);
}

.channel-bd li:hover {
    box-shadow: 0 1px 1px 1px rgba(0, 0, 0, .2);
}

.channel-bd li:first-child,
.channel-bd li:nth-child(2) {
    width: 290px;
    height: 370px;
    /* 注：n从0开始，会覆盖到第1,2个li */
    margin-right: 13px !important;
    background: url(../upload/c1.webp) no-repeat;
    background-size: cover;
}

.channel-bd li:nth-child(2) {
    background-image: url(../upload/c2.webp);
}

.channel-bd li>a {
    display: block;
    width: 100%;
    height: 100%;
}

.channel-bd li:nth-child(3),
.channel-bd li:nth-child(4n+1) {
    margin-right: 14px;
}

.channel-bd li:nth-child(4),
.channel-bd li:nth-child(4n+2) {
    margin-right: 0;
}

.channel-bd li:nth-child(n+3) {
    padding: 17px 0 0 30px;
}

.channel-bd li h3 {
    margin-right: 10px;
    margin-bottom: 13px;
    height: 30px;
    line-height: 30px;
    font-size: 22px;
    font-weight: 700;
    color: #333;
    /* 溢出字体用省略号代替要加在父元素身上？ */
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.channel-bd li h3 span {
    margin-left: 8px;
    font-size: 14px;
    font-weight: 400;
    color: #999;
}

.channel-bd li img {
    width: 100px;
    height: 100px;
    margin-right: 30px;
    border-radius: 5px;
    transition: all .5s;
}

.channel-imgBorder {
    border: 1px solid #ed1b55;
}

.channel-bd li img:hover {
    opacity: .7;
    border-radius: 0;
    transform: scale(1.02);
}

.channel-bd li:first-child:hover,
.channel-bd li:nth-child(2):hover {
    opacity: .7;
}


/* 精选品牌模块 */

.brand-hd {
    margin-top: 30px;
    height: 60px;
}

.brand-hd ul li {
    float: left;
    width: 100px;
    height: 40px;
    margin-top: 20px;
    margin-left: 5px;
    text-align: center;
    line-height: 40px;
    color: #333;
    font-size: 14px;
    cursor: pointer;
}

.brand-hd ul li.hover {
    background: #333;
    color: #fff;
}

.brand-bd {
    padding-bottom: 50px;
    border-top: 3px solid #333;
    border-bottom: 3px solid #333;
    background-color: #fff;
}

.brand-bd li {
    float: left;
    width: 120px;
    height: 120px;
    padding: 15px;
    border-left: 1px solid #eee;
    border-bottom: 1px solid #eee;
    text-align: center;
}

.brand-bd li:nth-child(10n),
.brand-bd li:last-child {
    border-right: 1px solid #eee;
}

.brand-bd li a {
    display: block;
    width: 100%;
    height: 100%;
}

.brand-bd li a img {
    width: 90px;
    height: 53px;
    transition: .5s;
}

.brand-bd li a h5 {
    margin-top: 15px;
    font-size: 12px;
}

.brand-bd li:hover img {
    transform: translate(-5px, -5px);
}